package com.hm.shopping.domain;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.hm.shopping.auto.su.BaseDomain;
import com.hm.shopping.auto.su.R;
import com.hm.shopping.def.GoodsCommentLevelEnum;

import lombok.Getter;
import lombok.Setter;

/**
 * @author shishun.wang
 * @date 2018年1月22日 下午2:03:12
 * @version 1.0
 * @describe 商品评论
 */
@Setter
@Getter
@Document(collection = R.Database.prefix + "ADVERTISING")
public class GoodsCommentDomain extends BaseDomain {

	private static final long serialVersionUID = 3053787102289874068L;

	/**
	 * 商品id
	 */
	@Field(value = "goods_id")
	private String goodsId;

	/**
	 * 商品评论级别
	 */
	@Field(value = "goods_comment_level")
	private GoodsCommentLevelEnum goodsCommentLevel;

	/**
	 * 评论内容
	 */
	private String content;

	/**
	 * 商品购买人
	 */
	@Field(value = "buy_user_id")
	private String buyUserId;
}
